package edu.hawaii.duedates;

import static org.junit.Assert.assertTrue;
//import org.junit.Ignore;
import org.junit.Test;

/**
 * Tests the Mailer class used for sending out emails.
 * @author John Ly
 * @author John Zhou
 */
public class TestMailer {
  
  /**
   * Tests the send of Mailer.
   */
  //@Ignore ("Ignored if not connected to hawaii.edu domain")
  @Test
  public void testSend () {
    Mailer mail = new Mailer ();
    String host = "mail.hawaii.edu";
    String emailAddr = "johnly@hawaii.edu";
    assertTrue("Test sendMail", mail.send(emailAddr, host, "DueDates Test"));
  }
}
